<style>
    .menu {
        width: 300px;
        height: 200px;
        background-color: #bd7272;
    }
</style>
<div class="menu">
    <table>
        <tr>
            <th>序号</th>
            <th>ID</th>
            <th>名称</th>
        </tr>
        {{range $index, $menu := .menulist}}
        <tr>
            <td>{{$index}}</td>
            <td>{{$menu.Id}}</td>
            <td>{{$menu.Name}}</td>
        </tr>
        {{end}}
    </table>
</div>
<script>
    console.log("menu---------");
</script>